# 初始化数据库
from db_model import EquipmentDB
db = EquipmentDB()

# 添加记录
data = {
    'Ti': 129,
    'Jin': 206,
    'Yu': 129,
    'Min': 129,
    'Shi': 196,
    'QiXue': 100992,
    'ZhenQi': 100,
    'ZuiXiaoWaiGong': 1020,
    'ZuiDaWaiGong': 2503,
    'FangYu': 507,
    'JingZun': 113.5,
    'JingZunHuang': 98.4,
    'HuiXin': 67.7,
    'HuiXinHuang': 46.7,
    'HuiYi': 39.3,
    'HuiYiHuang': 27.1,
    'ShuXingZuiDa': 719,
    'ShuXingZuiXiao': 380,
}
db.add_equipment(data)

# 查询记录
equipment = db.get_equipment(1)
print(equipment)

# 使用完毕后关闭连接
db.close()